import Axios from 'axios'

const axios = Axios.create({
  baseURL: 'http://liufusong.top:8080',
  timeout: 20000
})

export default ({ url, method = 'GET', params, data, headers }) => {
  return axios({ url, method, params, data, headers })
}
